import { GET } from '@/service/api';

// 数据概览
export const fetchContentOverview = (params: any) => {
  return GET('/da/statistics/content/content_overview', params);
};

// 情感占比
export const fetchSentimentRatio = (params: any) => {
  return GET('/da/statistics/sentiment/sentiment_ratio', params);
};

// 方案命中关键词
export const fetchTopMatchedKeywords = (params: any) => {
  return GET('/da/statistics/keyword/top_matched_keywords', params);
};

// 情感走势（敏感/非敏感）
export const fetchSentimentTrand = (params: any) => {
  return GET('/da/statistics/sentiment/sentiment_trand', params);
};

// 热度排名
export const fetchContentTop = (params: any) => {
  return GET('/da/statistics/content/top', params);
};

// 高频词分布统计
export const fetchKeywordCloud = (params: any) => {
  return GET('/da/statistics/keyword/cloud', params);
};

// 高频词指数
export const fetchKeywordIndexTrend = (params: any) => {
  return GET('/da/statistics/keyword/keyword_index_trend', params);
};

// 平台活跃度
export const fetchPlatformActivity = (params: any) => {
  return GET('/da/statistics/content/platform_activity', params);
};

// 最新内容
export const fetchContentLatest = (params: any) => {
  return GET('/da/statistics/content/latest', params);
};
